package com.javaGather.demo2;

import java.util.HashMap;

public class Test {
    public static void main(String[] args) {
        HashMap<String, Student> hashMap = new HashMap<>();
        hashMap.put("180901",new Student("Jack",23));
        hashMap.put("180902",new Student("Tom",23));
        hashMap.put("180903",new Student("Smith",23));
//        hashMap.put("180903",new Student("liHua",19));

        for(String key:hashMap.keySet()){
            System.out.println(hashMap.get(key));
        }

    }
}
